package cn.youfule.dp.builder;

public class Test {

	public static void main(String[] args) {
		Builder builder = new Builder();
		Computer dell = builder.constructorCom(new BuildDell());
		System.out.println(dell.getMainBoard()+" | "+dell.getHardDisk() + " | "+dell.getCpu());
		Computer lenovo = builder.constructorCom(new BuildLenovo());
		System.out.println(lenovo.getMainBoard()+" | "+lenovo.getHardDisk() + " | "+lenovo.getCpu());
	}
}
